package com.lbj.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lbj.mall.common.utils.PageUtils;
import com.lbj.mall.order.entity.OrderEntity;
import com.lbj.mall.order.entity.vo.OrderConfirmVo;
import com.lbj.mall.order.entity.vo.OrderSubmitResponseVo;
import com.lbj.mall.order.entity.vo.OrderSubmitVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author libingjun
 * @email 617416791@qq.com
 * @date 2022-03-27 12:11:06
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    OrderSubmitResponseVo submitOrder(OrderSubmitVo vo);

    OrderEntity getOrderByOrderSn(String orderSn);
}

